//
//  ConnectToKotnet.h
//  KotnetAutologin
//
//  Created by Kristof Marien on 4/01/10.
//  Copyright 2010 KotnetAutologin. All rights reserved.
//

#import <Cocoa/Cocoa.h>
#import "CheckConnection.h"
#import "CheckLoggedIn.h"
#import "StatusItem.h"
#import "KotnetLogin.h"
#import "KotnetAvailable.h"
#import "PreferencesWindow.h"
#import "KotnetLogout.h"
#import "StatsWindow.h"

@interface ConnectToKotnet : NSObject {
    IBOutlet NSMenu *statusMenu;
	@private
	CheckConnection *checkConnection;
	CheckLoggedIn *checkLoggedIn;
	KotnetLogin *kotnetLogin;
	StatusItem *statusItem;
	KotnetAvailable *kotnetAvailable;
	PreferencesWindow *prefWindow;
	KotnetLogout *kotnetLogout;
	StatsWindow *statsWindow;
	NSTimer *checkTimer;
}

- (void)checkConnectionStatus;
- (void)showPrefWindow:(id)sender;
- (void)showStatsWindow:(id)sender;
- (void)nowConnected;
- (void)nowNotConnected;
- (void)isLoggedIn;
- (void)kotnetIsAvailable;
- (void)kotnetIsUnAvailable;
- (void)notLoggedIn;
- (void)cannotLogin:(NSString *)data;
- (void)loggedIn;
- (void)connect:(id)sender;
- (void)disconnect:(id)sender;
- (void)cannotLogout:(NSString *)data;
- (void)loggedout;
@end

